package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerPrizePoolWaterLineLog implements IQLResponse
{
    /// <summary>
    /// 是否是手动抽放水日志 true手动 false自动
    /// </summary>
    public boolean IsManual;

    /// <summary>
    /// 变化前的水位
    /// </summary>
    public long Original;

    /// <summary>
    /// 变化量 <0表示抽水 >0表示放水
    /// </summary>
    public long Delta;

    /// <summary>
    /// 操作员
    /// </summary>
    public String Operater;

    /// <summary>
    /// 操作时间
    /// </summary>
    public String CreateTime;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("is_manual"))
            IsManual = t.getBoolean("is_manual");
        if (t.has("original"))
            Original = t.getLong("original");
        if (t.has("delta"))
            Delta = t.getLong("delta");
        if (t.has("operater"))
            Operater = t.getString("operater");
        if (t.has("create_time"))
            CreateTime = t.getString("create_time");
    }
}
